package com.qianxunclub.chapter2.client;

import com.qianxunclub.chapter2.api.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClientMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("demo-consumer.xml");
        DemoService demoService = context.getBean(DemoService.class);
        String r = demoService.sayHello("zhangsan");
        System.out.println(r);
    }
}
